package com.itcast.enum_type;

public class Test {
    public static void main(String[] args) {
        // 测试枚举类型
        show(Sex.BOY);
    }

    public static void show(Sex sex) {
        switch (sex) {
            case BOY -> System.out.println("男生");
            case GIRL -> System.out.println("女士");
            default -> System.out.println("好像没有");
        }
    }
}
